package com.citywithincity.db;

import java.util.Map;

public interface DbStatus {
	
	/**
	 * 锁定
	 * @param oldStatus
	 * @param newStatus
	 * @return
	 */
	boolean lockStatus(Object id,int oldStatus,int newStatus);
	
	/**
	 * 锁定状态
	 * @param id
	 * @param oldStatus
	 * @param newStatus
	 * @param data
	 * @return
	 */
	boolean lockStatus(Object id,int oldStatus,int newStatus,Map<String, Object> data);
	
	/**
	 * 直接更新状态
	 * @param id
	 * @param newStatus
	 */
	void updateStatus(Object id,int newStatus);
	
	
	void updateStatus(Object id,int newStatus,Map<String, Object> data);
}
